<!DOCTYPE html>
<html lang="en">
<head>
    <title>流程操作</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/lib/layuiadmin/layui/css/layui.css" media="all">
    <style>
        .layui-btn {
            font-size: inherit;
        }
    </style>
</head>
<body style="margin:10px;padding:0;border:0;height:100%;">
<div style="margin:0;padding:0px;border:0;width:100%;height:100%;">
    <form id="mainform" lay-filter="mainform" class="layui-form" action="">
        <input class='layui-hide wfWorkflow' name='wfId' id='wfId'/>
        <input class='layui-hide wfWorkflow' name='moduleId' id='moduleId'/>
        <input class='layui-hide wfWorkflow' name='formEditId' id='formEditId'/>
        <input class='layui-hide wfWorkflow' name='formViewId' id='formViewId'/>
        <input class='layui-hide wfWorkflow' name='formPrintId' id='formPrintId'/>
        <input class='layui-hide wfWorkflow' name='wfTitle' id='wfTitle'/>
        <div class="layui-form-item layui-row">
            <div class="layui-form-item">
                <label class="layui-form-label">所属模块</label>
                <div class="layui-input-inline">
                    <label id='moduleDisplayName' class="layui-form-label" style="width: 100%;text-align: left;"></label>
                </div>
            </div>
            <!--
            <div class="layui-form-item">
                <label class="layui-form-label">流程代码</label>
                <div class="layui-input-inline">
                    <input type="text" id='wfCode' name="wfCode" lay-verify="required" autocomplete="off"
                           class="layui-input wfWorkflow" style="width: 281%;">
                </div>
            </div>
            -->
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">流程名</label>
            <div class="layui-input-inline">
                <input type="text" id='wfName' name="wfName" lay-verify="required" autocomplete="off"
                       placeholder="请输入流程名" maxlength="100" class="layui-input wfWorkflow" style="width: 281%;">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">选择表单</label>
            <div class="layui-input-inline">
                <input type="text" id='formEditName' maxlength="200" lableId="formEditId" name="formEditName"
                       autocomplete="off" placeholder="" class="layui-input formEditName wfWorkflow" style="width: 230%;">
                <button type="button" class="layui-btn layui-btn-primary emptyThis" style="margin-left: 246%;margin-top: -54px;">清空</button>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">标题配置</label>
            <div class="layui-input-inline" style="width: 77%;">
                <!--
                <input type="text" id='wfTitle' name="wfTitle" lay-verify="required" placeholder="请输入标题配置"
                       autocomplete="off" class="layui-input wfWorkflow" style="width: 281%;">
                       -->
                <span style="width: 30%;float: left">
                    <input type="text" maxlength="200" name="wfTitle1" id="wfTitle1" class="layui-input" placeholder="请输入标题配置" autocomplete="off" />
                </span>
                <span style="width: 39%;float: left">
                    <select name="wftitle" id="title" lay-filter="title" autocomplete="off" placeholder="标题配置" lay-search=""></select>
                </span>
                <span style="width: 30%;float: left">
                    <input type="text" maxlength="200" name="wfTitle2" id="wfTitle2" class="layui-input" placeholder="请输入标题配置" value="" autocomplete="off"/>
                </span>
            </div>
        </div>
        <!--
        <div class="layui-form-item">
            <label class="layui-form-label">打印表单</label>
            <div class="layui-input-inline">
                <input type="text" id='formPrintName' lableId="formViewId" name="formPrintName"
                       autocomplete="off" placeholder="" class="layui-input formEditName wfWorkflow" style="width: 230%;">
                <button type="button" class="layui-btn layui-btn-primary emptyThis" style="margin-left: 246%;margin-top: -38px;">清空</button>
            </div>
        </div>
        -->
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-inline">
                <label id='activeFlag' lay-filter="state" class="layui-form-label" style="width: 100%;text-align: left;"></label>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block" >
                <button  type="button" class="layui-btn" lay-submit="" lay-filter="saveData" style="float: right; margin-right:50px" >保存</button>
                <button class="layui-btn" type="button" id="onOrOff" onclick="changeState()" lay-filter="onOrOff" style="float: right; margin-right:10px">
                    启用/关闭
                </button>

            </div>
        </div>
    </form>
</div>
<script src="/static/lib/layuiadmin/layui/layui.js" type="text/javascript"></script>
<script src="/static/lib/layuiadmin/layui/layui.all.js" type="text/javascript"></script>
<script type="text/javascript" src="../../../common/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../../../common/jquery.serializejson.min.js"></script>
<script type="text/javascript" src="../../../common/common.js"></script>
<script type="text/javascript" src="../../../common/dataGrid.js"></script>
<script type="text/javascript" src="../../../common/treeSelect.js"></script>
<script type="text/javascript" src="wfWorkflowDetail.js"></script>
</body>
</html>